<template>
  <div class="print_content">
    <div class="perpage">分页1</div>
    <div class="perpage">分页2</div>
    <div class="perpage">分页3</div>
    <div class="perpage">分页4</div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  created() {},
  mounted() {},
  methods: {},
};
</script>

<style scoped>
.print_content {
  display: flex;
  justify-content: center;
  width: 525px;
  height: 742.5px;
  margin: 0 auto;
  background-color: aqua;
}
.perpage {
  page-break-after: always;
  width: 525px;
  height: 742.5px;
}
</style>
<style media="print">
@page {
  size: auto;
  margin: 3mm;
  size: 21cm 29.7cm;
  margin: 0;
  padding: 0;
}
.noprint {
  display: none;
}
html {
  background-color: #ffffff;
  height: auto;
}
</style>